package com.advanced.pojo;

/**
 * ClassName: Employee
 * Description:
 *
 * @Author liu
 * @Create 2025/4/23 14:47
 * @Version 1.0
 */
public class Employee {
    //一张表对应一个类，
    // 一行数据对应一个对象，
    // 一个列对应一个属性！
    private Integer empId;
    private String empName;
    private Double empsalary;
    private Integer empAge;

    public Employee() {
    }

    public Employee(Integer empId, String empName, Double empsalary, Integer empAge) {
        this.empId = empId;
        this.empName = empName;
        this.empsalary = empsalary;
        this.empAge = empAge;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Double getEmpsalary() {
        return empsalary;
    }

    public void setEmpsalary(Double empsalary) {
        this.empsalary = empsalary;
    }

    public Integer getEmpAge() {
        return empAge;
    }

    public void setEmpAge(Integer empAge) {
        this.empAge = empAge;
    }

    @Override
    public String toString() {
        return "JDBCAdvanced{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", empsalary=" + empsalary +
                ", empAge=" + empAge +
                '}';
    }
}
